function func_agreement_discount_equal(requestSkuList, skuID, itemNbr, traitNbr, storeId,
                                       retailStartDate, retailEndDate, costStartDate, costEndDate, activeDiscount, traitStore, storeType) {

    var discountEqualStartDate = ""
    var discountEqualEndDate = ""
    if (discount_range === 'price') {
        discountEqualStartDate = retailStartDate;
        discountEqualEndDate = retailEndDate;
    } else if (discount_range === 'cost') {
        discountEqualStartDate = costStartDate;
        discountEqualEndDate = costEndDate;
    }
    if (isNull(discountEqualEndDate)) {
        discountEqualEndDate = "2049-12-31"
    }

    discountEqualStartDate = getNewDate(new Date(discountEqualStartDate));
    discountEqualEndDate = getNewDate(new Date(discountEqualEndDate));
    var detailList = [];
    if (!isNull(requestSkuList)) {
        var jsonList = JSON.parse(requestSkuList);
        if (!isNull(jsonList)) {
            jsonList.forEach(function (compareItem) {
                var interSectionStore = determineInterSectionStore(compareItem, skuID, itemNbr, traitNbr, storeId, traitStore, storeType, false, store_jd)

                if (interSectionStore) {
                    var compareActiveDiscount = compareItem.active_discount;
                    var compareDiscountRange = compareItem.discount_range;
                    var compareDiscountStartDate = ""
                    var compareDiscountEndDate = ""
                    if (compareDiscountRange === 'price') {
                        compareDiscountStartDate = compareItem.retail_start_date;
                        compareDiscountEndDate = compareItem.retail_end_date;
                    } else if (compareDiscountRange === 'cost') {
                        compareDiscountStartDate = compareItem.cost_start_date;
                        compareDiscountEndDate = compareItem.cost_end_date;
                    }
                    if (isNull(compareDiscountEndDate)) {
                        compareDiscountEndDate = "2049-12-31"
                    }
                    compareDiscountStartDate = getNewDate(new Date(compareDiscountStartDate));
                    compareDiscountEndDate = getNewDate(new Date(compareDiscountEndDate));
                    var overlapsFlag = overlaps(discountEqualStartDate, discountEqualEndDate, compareDiscountStartDate, compareDiscountEndDate);

                    if (overlapsFlag) {
                        if (activeDiscount == 1 && compareActiveDiscount == activeDiscount) {
                            detailList.push(compareItem)
                        }
                    }

                }
            })
        }
    }
    return detailList;
}
